<?php

use \Engine\Constants as DEECONST;

class Zend_View_Helper_GetArrConstant extends Zend_View_Helper_Abstract {

    public function getArrConstant($consts, $key) {

        $consts = DEECONST\GLConstants::$$consts;
        if (isset($consts) && is_array($consts)) {
            return isset($consts[$key]) ? $consts[$key] : null;
        } else {
            return $consts;
        }
    }

}

?>